<?php
	$params=Baogg_Controller::getUrlParams();
	if(isset($params['json'])){
		echo (int)$this->flag;
		return;
	}
?>
<script type="text/javascript">
<?php if($this->flag){?>
	alert("suceful");
	if(top && top.tb_remove){
		top.location.href=top.location.href.replace("#","");
		top.tb_remove();
			
	}
<?php }else{?>
	alert("failure");
<?php }?>
</script>